Skip to content

Add a CLI to convert message files #41

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed

Conversation

mpkorstanje
Copy link
Contributor

@mpkorstanje mpkorstanje commented Oct 26, 2024

🤔 What's changed?

Added a CLI to convert message files

⚡️ What's your motivation?

Proof of concept to see if it is possible to have a useful CLI tool in Java.

jgo io.cucumber:junit-xml-formatter-cli:0.5.1-SNAPSHOT

Missing required parameter: '<source>'
Usage: to-junit-xml [-hV] <source>
Converts Cucumber messages to JUnit XML
      <source>    The source file containing Cucumber messages
  -h, --help      Show this help message and exit.
  -V, --version   Print version information and exit.

And

jgo io.cucumber:junit-xml-formatter-cli:0.5.1-SNAPSHOT testdata/minimal.feature.ndjson

<?xml version="1.0" encoding="UTF-8"?>
<testsuite name="Cucumber" time="0.005" tests="1" skipped="0" failures="0" errors="0">
<testcase classname="minimal" name="cukes" time="0.003">
<system-out><![CDATA[
Given I have 42 cukes in my belly...........................................passed
]]></system-out>
</testcase>
</testsuite>

🏷️ What kind of change is this?

  • ⚡ New feature (non-breaking change which adds new behaviour)

♻️ Anything particular you want feedback on?

The naming of things. Just picked some at random.

📋 Checklist:

  • I agree to respect and uphold the Cucumber Community Code of Conduct
  • I've changed the behaviour of the code
    • I have added/updated tests to cover my changes.
  • My change requires a change to the documentation.
    • I have updated the documentation accordingly.
  • Users should know about my change
    • I have added an entry to the "Unreleased" section of the CHANGELOG, linking to this pull request.

@mpkorstanje
Copy link
Contributor Author

Probably better to move this into a messages-cli project so we can also use commands to generate html, TestNG reports. And also have a CLI to parse gherkin.

@mpkorstanje
Copy link
Contributor Author

Superseded by https://github.com/cucumber/messages-cli

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant